package com.yudean.esb.service;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface ERPPutService {

    /**
     * 处理第三方系统推送到ERP数据库的数据内容
     *
     * @param serviceID     服务ID
     * @param token         安全验证码
     * @param transactionID 事务ID
     * @param pkg           当前包数
     * @param totalPackage  总共报数
     * @param rollback      是否回滚
     * @param forceReplace  包重复时强制替换
     * @param data          数据内容
     * @return
     */
    String putErpData(
            @WebParam(name = "serviceID") String serviceID,
            @WebParam(name = "token") String token,
            @WebParam(name = "transactionID") String transactionID,
            @WebParam(name = "package") String pkg,
            @WebParam(name = "totalPackage") String totalPackage,
            @WebParam(name = "rollback") String rollback,
            @WebParam(name = "forceReplace") String forceReplace,
            @WebParam(name = "data") String data
    ) throws Exception;

}


